<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <th:block th:include="include :: header('人员良好行为')" />
    <link href="../static/css/workboard.css" th:href="@{/css/workboard.css}" rel="stylesheet" />
</head>

<body>
    <div class="container-div">
        <div class="tabsbody">
            <!-- 基本信息 -->
            <div class="tabsbody-item active">
                <form action="">
                    <table border="0" cellpadding="0" cellspacing="0" style="table-layout: fixed; width: 80%;margin:0 auto;">
                        <tbody>
                            <tr>
                                <td>
                                    <div class="page-title">
                                        <span>人员良好行为记录</span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellpadding="0" cellspacing="0" class="tbEidt"
                                        style="table-layout: fixed; width: 100%;word-break:break-all;background-color: #ffffff;">
                                        <tbody>
                                            <tr>
                                                <td class="tdTitle">良好行为代码
                                                </td>
                                                <td class="tdContent" style="text-align: left;">
                                                    <span id="txtBehaviorCode" th:text="${igmpwi}==null or ${igmpwi.behaviorCode}==null ? ' ':${igmpwi.behaviorCode}"></span>&nbsp;
                                                </td>
                                                <td class="tdTitle" style="height: 32px">良好行为类别
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.behaviorCategory}==null ? ' ':${igmpwi.behaviorCategory}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="width: 18%;">良好行为描述
                                                </td>
                                                <td class="tdContent" colspan="3" th:text="${igmpwi}==null or ${igmpwi.behaviorDescription}==null ? ' ':${igmpwi.behaviorDescription}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">加分分值
                                                </td>
                                                <td class="tdContent" colspan="3">
                                                    <span id="lblScore" style="color:Red;" th:text="${igmpwi}==null or ${igmpwi.score}==null ? '0':${igmpwi.score}"></span>&nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">获奖内容
                                                </td>
                                                <td class="tdContent" colspan="3" th:text="${igmpwi}==null or ${igmpwi.awardContent}==null ? ' ':${igmpwi.awardContent}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px; width: 18%;">姓名
                                                </td>
                                                <td class="tdContent" style="width: 32%; text-align: left;" th:text="${igmpwi}==null or ${igmpwi.personName}==null ? ' ':${igmpwi.personName}">
                                                </td>
                                                <td class="tdTitle" style="width: 18%;">证件类型
                                                </td>
                                                <td class="tdContent" style="width: 32%" th:text="${igmpwi}==null or ${igmpwi.iDCardTypeNum}==null ? ' ':${igmpwi.iDCardTypeNum}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">证件号码
                                                </td>
                                                <td class="tdContent" style="text-align: left;" th:text="${igmpwi}==null or ${igmpwi.iDCard}==null ? ' ':${igmpwi.iDCard}">
                                                </td>
                                                <td class="tdTitle">工程名称
                                                </td>
                                                <td class="tdContent" style="text-align: left;" th:text="${igmpwi}==null or ${igmpwi.engineeringName}==null ? ' ':${igmpwi.engineeringName}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">所在企业
                                                </td>
                                                <td class="tdContent" style="text-align: left;" th:text="${igmpwi}==null or ${igmpwi.companyName}==null ? ' ':${igmpwi.companyName}">
                                                </td>
                                                <td class="tdTitle" style="width: 18%;">组织机构代码/&nbsp;<br>
                                                    	统一社会信用代码
                                                </td>
                                                <td class="tdContent" style="width: 32%" th:text="${igmpwi}==null or ${igmpwi.orginGuid}==null ? ' ':${igmpwi.orginGuid}">
                                                </td>

                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">发生地所在市县
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.city}==null ? ' ':${igmpwi.city}">
                                                </td>
                                                <td class="tdTitle" style="height: 32px;">所属区
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.area}==null ? ' ':${igmpwi.area}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">奖励机构级别
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.inLevel}==null ? ' ':${igmpwi.inLevel}">
                                                </td>
                                                <td class="tdTitle">奖励机构
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.agencyName}==null ? ' ':${igmpwi.agencyName}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">奖励决定文号
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.docNumber}==null ? ' ':${igmpwi.docNumber}">
                                                </td>
                                                <td class="tdTitle" style="height: 32px">奖励决定日期
                                                </td>
                                                <td class="tdContent tdTime" th:text="${igmpwi}==null or ${igmpwi.awardDate}==null ? ' ':${igmpwi.awardDate}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">登记人
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.regPerson}==null ? ' ':${igmpwi.regPerson}">
                                                </td>
                                                <td class="tdTitle">登记部门
                                                </td>
                                                <td class="tdContent" th:text="${igmpwi}==null or ${igmpwi.regDepartment}==null ? ' ':${igmpwi.regDepartment}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">登记日期
                                                </td>
                                                <td class="tdContent tdTime" colspan="3" th:text="${igmpwi}==null or ${igmpwi.pubDate}==null ? ' ':${igmpwi.pubDate}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle" style="height: 32px;">公布开始日期
                                                </td>
                                                <td class="tdContent tdTime" th:text="${igmpwi}==null or ${igmpwi.lNPublishStartDate}==null ? ' ':${igmpwi.lNPublishStartDate}">
                                                </td>
                                                <td class="tdTitle">公布截至日期
                                                </td>
                                                <td class="tdContent tdTime" th:text="${igmpwi}==null or ${igmpwi.lNPublishEndDate}==null ? ' ':${igmpwi.lNPublishEndDate}">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">相关材料</td>
                                                <td class="tdContent" colspan="3">
                                                    <a id="ID_IntergrityMge_ucPersonalWellInfoShowOfPass_ucshowimg1_BtnShow" th:if="${igmpwi==null || igmpwi.materials=='' || igmpwi.materials==null || (igmpwi.fileSort!='0' && igmpwi.fileSort!='1')}" target="_blank" style="color:Gray;">未上传附件</a>
                                                    <a th:if="${igmpwi.fileSort == '1'}" title="点击下载" class="btn btn-success btn-xs" th:onclick="openUrl([[${igmpwi.materials}]],[[${igmpwi.fileName}]])"><i class="fa fa-edit"></i>下载</a>
                                                    <a th:if="${igmpwi.fileSort == '0'}" title="点击下载" class="btn btn-success btn-xs" rel="noopener noreferrer" th:href="${igmpwi.materials}" target="_blank"><i class="fa fa-edit"></i>下载</a>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">来源类型</td>
                                                <td class="tdContent" colspan="3" th:text="${igmpwi}==null or ${igmpwi.inSource}==null ? ' ':${igmpwi.inSource}"></td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>

    </div>
    <th:block th:include="include :: footer" />
    <script th:src="@{/js/plugins/datetime/moment.js}"></script>
    <script th:inline="javascript">
    /* 日期格式化  */
    var tdStr = $('.tdTime');
    
    /* 下载  */
	function openUrl(filePath, FileNameOld){
		window.location.href = ctx + 'integrityInformationAdd/peopleBehavior/download?resource='+filePath+'&fileName='+ encodeURI(FileNameOld);
	}
    
	for(var i =0;i<tdStr.length;i++){
		if($.common.isNotEmpty(tdStr[i].innerText)){
			var strDate = tdStr[i].innerText;
			tdStr[i].innerText =  moment(strDate,'YYYY-MM-DD').format('YYYY-MM-DD');	
		}
		
	};
    </script>
</body>

</html>